package jtk.project4.fleet.templateField;

import java.awt.Dimension;

import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.MemoField;
import nl.coderight.jazz.form.field.SpinnerField;

public class ContohSpinnerField extends GroupControl{
	private SpinnerField<Integer> spinnerField ;
	
	public ContohSpinnerField(String bindID){
		setTitle("header.field");
		setBindID(bindID);
		createFields();
		createLayout();
	}
	
	private void createFields(){
		Dimension dimension = new Dimension(166, 20);
		spinnerField = new SpinnerField<Integer> ("domains","domain");
		spinnerField.setPreferredSize(dimension);
		spinnerField.setValue(566);
	}
	
	private void createLayout() {
		setLayout(new FormLayout())
		.addLabel("label.textArea")		.addField(spinnerField) ;
	}
}
